require("basic")
require("keybindings")
require("plugins")
require("colorscheme")
require("plugin-config.nvim-tree")
require("plugin-config.go")
require("plugin-config.lsp")
require("plugin-config.bufferline")
require("plugin-config.lualine")
require("plugin-config.telescope")
require("plugin-config.nvim-treesitter")
-- require("plugin-config.leap")
require("plugin-config.fidget")

-- 内置 lsp
require("lsp.setup")
require("lsp.cmp")

require("lsp.null-ls")

vim.api.nvim_create_autocmd("BufWritePre", {
	pattern = "*.go",
	callback = function()
		require("go.format").goimport()
	end,
})
